<template>
  <div class="wrapper">
    <el-breadcrumb separator="/">
     <el-breadcrumb-item>结算管理</el-breadcrumb-item>
     <el-breadcrumb-item>结算明细</el-breadcrumb-item>
    </el-breadcrumb>
    <div class="easy-content">
      <el-tabs v-model="activeName">
        <el-tab-pane label="结算总述"  v-if="isHas('financeoverview','first')"
          name="first">
          <Summary/>
        </el-tab-pane>
        <el-tab-pane label="转账记录"  v-if="isHas('financeoverviewtransfer','first')"
          name="second">
          <TransferRecord/>
        </el-tab-pane>

      </el-tabs>
    </div>
  </div>
</template>

<script>
import Summary from "./summary";
import TransferRecord from "./transferRecord";
import { has } from "@/public/js/util";

export default {
  components: {
    TransferRecord,
    Summary
  },
  props: {},
  data() {
    return {
      activeName: "first",
      isFirst: true
    };
  },
  watch: {},
  computed: {},
  methods: {
    isHas(role, tab) {
      if (this.isFirst) {
        if (has(role, this)) {
          this.activeName = tab;
          this.isFirst = false;
        }
      }
      return has(role, this);
    }
  },
  created() {},
  mounted() {}
};
</script>
<style lang="scss" scoped>
.wrapper {
}
</style>